package com.cazor.mg.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 设备分组对象 mg_device_group
 *
 * @author cazor
 * @date 2024-05-15
 */
@TableName("mg_device_group")
public class MgDeviceGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 所属项目 */
    @Excel(name = "所属项目")
    private String subProject;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String subCompany;

    /** 是否报警 */
    @Excel(name = "是否报警")
    private Integer isCall;

    /** 间隔天数 */
    @Excel(name = "间隔天数")
    private Integer intervalDays;

    /** 报警阈值 */
    @Excel(name = "报警阈值")
    private BigDecimal callThreshold;

    /** 预警阈值 */
    @Excel(name = "预警阈值")
    private BigDecimal earlyThreshold;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 修改人id */
    @Excel(name = "修改人id")
    private Long updateId;

    /** 修改人名称 */
    @Excel(name = "修改人名称")
    private String updateName;

    /** 是否删除【0.否 1.是】 */
    @Excel(name = "是否删除【0.否 1.是】")
    private Integer isFlag;

    /** 管道半径 */
    @Excel(name = "管道半径")
    private BigDecimal pipeRadius;

    /** 管道id */
    @Excel(name = "管道id")
    private Long pipeId;

    /** 截面经度 */
    @Excel(name = "截面经度")
    private String longitude;

    /** 截面纬度 */
    @Excel(name = "截面纬度")
    private String latitude;

    /** 截面距离 */
    @Excel(name = "截面距离")
    private Long distance;

    /** 排序 */
    @Excel(name = "排序")
    private Long showIdx;

    /** 截面桩号 */
    @Excel(name = "截面桩号")
    private String stationNo;

    /** 监测类型 */
    @Excel(name = "监测类型")
    private String monitorType;

    /** 传感器安装工法 0-品字形 1-120度型 2-45度型 */
    @Excel(name = "传感器安装工法 0-品字形 1-120度型 2-45度型")
    private Long installType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGroupName(String groupName)
    {
        this.groupName = groupName;
    }

    public String getGroupName()
    {
        return groupName;
    }
    public void setSubProject(String subProject)
    {
        this.subProject = subProject;
    }

    public String getSubProject()
    {
        return subProject;
    }
    public void setSubCompany(String subCompany)
    {
        this.subCompany = subCompany;
    }

    public String getSubCompany()
    {
        return subCompany;
    }
    public void setIsCall(Integer isCall)
    {
        this.isCall = isCall;
    }

    public Integer getIsCall()
    {
        return isCall;
    }
    public void setIntervalDays(Integer intervalDays)
    {
        this.intervalDays = intervalDays;
    }

    public Integer getIntervalDays()
    {
        return intervalDays;
    }
    public void setCallThreshold(BigDecimal callThreshold)
    {
        this.callThreshold = callThreshold;
    }

    public BigDecimal getCallThreshold()
    {
        return callThreshold;
    }
    public void setEarlyThreshold(BigDecimal earlyThreshold)
    {
        this.earlyThreshold = earlyThreshold;
    }

    public BigDecimal getEarlyThreshold()
    {
        return earlyThreshold;
    }
    public void setCreateId(Long createId)
    {
        this.createId = createId;
    }

    public Long getCreateId()
    {
        return createId;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setUpdateId(Long updateId)
    {
        this.updateId = updateId;
    }

    public Long getUpdateId()
    {
        return updateId;
    }
    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }
    public void setIsFlag(Integer isFlag)
    {
        this.isFlag = isFlag;
    }

    public Integer getIsFlag()
    {
        return isFlag;
    }
    public void setPipeRadius(BigDecimal pipeRadius)
    {
        this.pipeRadius = pipeRadius;
    }

    public BigDecimal getPipeRadius()
    {
        return pipeRadius;
    }
    public void setPipeId(Long pipeId)
    {
        this.pipeId = pipeId;
    }

    public Long getPipeId()
    {
        return pipeId;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setDistance(Long distance)
    {
        this.distance = distance;
    }

    public Long getDistance()
    {
        return distance;
    }
    public void setShowIdx(Long showIdx)
    {
        this.showIdx = showIdx;
    }

    public Long getShowIdx()
    {
        return showIdx;
    }
    public void setStationNo(String stationNo)
    {
        this.stationNo = stationNo;
    }

    public String getStationNo()
    {
        return stationNo;
    }
    public void setMonitorType(String monitorType)
    {
        this.monitorType = monitorType;
    }

    public String getMonitorType()
    {
        return monitorType;
    }
    public void setInstallType(Long installType)
    {
        this.installType = installType;
    }

    public Long getInstallType()
    {
        return installType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("groupName", getGroupName())
                .append("subProject", getSubProject())
                .append("subCompany", getSubCompany())
                .append("isCall", getIsCall())
                .append("intervalDays", getIntervalDays())
                .append("callThreshold", getCallThreshold())
                .append("earlyThreshold", getEarlyThreshold())
                .append("remark", getRemark())
                .append("createId", getCreateId())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateId", getUpdateId())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("isFlag", getIsFlag())
                .append("pipeRadius", getPipeRadius())
                .append("pipeId", getPipeId())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("distance", getDistance())
                .append("showIdx", getShowIdx())
                .append("stationNo", getStationNo())
                .append("monitorType", getMonitorType())
                .append("installType", getInstallType())
                .toString();
    }
}
